import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { APP_BASE_HREF, LocationStrategy, PathLocationStrategy } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { CoreModule as LIVECoreModule } from '@iux/live';
import { SharedModule, Common } from '@shared';
import { AppContentModule } from './business/app-content/app-content.module';
import { AppRouterModule } from './app-router.module';
import { AppComponent } from './app.component';
// TODO 种子工程和pro demo

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    SharedModule.forRoot(),
    LIVECoreModule.forRoot(),
    AppRouterModule,
    AppContentModule,
  ],
  providers: [
    { provide: LocationStrategy, useClass: PathLocationStrategy },
    { provide: APP_BASE_HREF, useValue: `/${Common.BASE_URL}` },
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}
